﻿//using System.Collections.Generic;
//using Microsoft.Extensions.Logging;
//using System.Threading.Tasks;
//namespace Athena.Runtime.Client.RemoteAddressOverride.Polling
//{
//    using Athena.RouteAddress;
//    using HealthChecks;
//    using RouteAddress.Implementations;
//    using Serialization;
//    public class PollingServiceMultipleRouteDescriptorManager : FileServiceMultipleRouteDescriptorManager
//    {

//        private readonly IHealthCheckDispatch _healthCheckDispatch;

//        public PollingServiceMultipleRouteDescriptorManager(string directoryPath, ServiceDescriptor serviceDescriptor, IHealthCheckDispatch healthCheckDispatch, ISerializer<string> serializer, ILogger<PublicFileServiceAddressManager> logger) : base(directoryPath, serviceDescriptor, serializer, logger)
//        {
//            _healthCheckDispatch = healthCheckDispatch;
//        }

//        public override async Task SetServiceAddressAsync(IEnumerable<ServiceAddressDescriptor> serviceAddressDescriptors)
//        {
//            await base.SetServiceAddressAsync(serviceAddressDescriptors);
//            foreach (var addressModelDescriptor in serviceAddressDescriptors)
//            //{
//                foreach (var addressModel in addressModelDescriptor.AddressModelDescriptors)
//                {
//                    foreach (var item in addressModel.RouteAddress)
//                    {
//                        await _healthCheckDispatch.Monitor(item);
//                    }
//                }
//            }

//        }
//    }
//}
